﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace TyMES.Model.Record
{
    [Table("T_RepairRecord")]
    public class RepairRecord : BasePoco
    {
        [Display(Name = "产线号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string LineCode { get; set; }
        [Display(Name = "返修工序号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string OperationCode { get; set; }
        [Display(Name = "返修工序名称")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string OperationName { get; set; }
        [Display(Name = "返修前SN")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string OldSN { get; set; }
        [Display(Name = "新SN")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string CurrentSN { get; set; }
        [Display(Name = "电机号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string TZMaterialCode { get; set; }
        [Display(Name = "返修状态码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string RepairStatus { get; set; }
        [Display(Name = "返修信息描述")]
        [StringLength(1000, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Description { get; set; }
        [Display(Name = "返修时间")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string uploadTime { get; set; }
        [Display(Name = "上传状态")]
        public bool uploadFlag { get; set; }
        [Display(Name = "预留域1")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Filed1 { get; set; }
        [Display(Name = "预留域2")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Filed2 { get; set; }
    }
}
